/**
 *
 */
package com.naiterui.ehp.bs.patient.vo.family;

import java.io.Serializable;

import com.naiterui.ehp.bs.patient.utils.StringUtil;

import io.swagger.annotations.ApiModelProperty;

/**
 * @since 2.16
 */
public class FamilyVO implements Serializable {
    /**
     * 字段或域定义：<code>serialVersionUID</code>
     */
    private static final long serialVersionUID = 3804738244518854630L;

    @ApiModelProperty(value = "家庭成员id")
    private Long id;
    @ApiModelProperty(value = "家庭成员姓名")
    private String name;
    @ApiModelProperty(value = "家庭成员性别:0女1男")
    private Integer gender;
    @ApiModelProperty(value = "家庭成员出生日期")
    private Long birth;
    @ApiModelProperty(value = "和本人关系:0：父亲；1：母亲；2：兄弟姐妹；3：子女；4：丈夫；5：妻子；6：本人；7：其他家庭成员")
    private Integer relation;
    @ApiModelProperty(value = "手机号")
    private String phone;
    @ApiModelProperty(value = "身份证号")
    private String idCard;

    public Long getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public Integer getGender() {
        return gender;
    }

    public Long getBirth() {
        return birth;
    }

    public Integer getRelation() {
        return relation;
    }

    public String getPhone() {
        return StringUtil.securePhone(phone);
    }

    public String getIdCard() {
        return StringUtil.secureIdcard(idCard);
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public void setBirth(Long birth) {
        this.birth = birth;
    }

    public void setRelation(Integer relation) {
        this.relation = relation;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    @Override
    public String toString() {
        return "FamilyVO [id=" + id + ", name=" + name + ", gender=" + gender + ", birth=" + birth + ", relation=" + relation + ", phone=" + phone
                + ", idCard=" + idCard + "]";
    }
}
